package com.atguigu.eduservice.client;

import com.atguigu.baseservice.result.R;
import com.atguigu.eduservice.client.impl.OssClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * feign调用接口
 */
@FeignClient(name = "service-oss", fallback = OssClientHystrix.class)
@Component
public interface OssClient {

    //调用测试接口
    @GetMapping(value = "/oss/file/{id}")
    public R testFeign(@PathVariable("id") String id);

}
